<script src="lib/plupload-2.1.2/js/plupload.full.min.js"></script>

<div class="row" ng-controller="DoctorCtrl">

    <div class="col-sm-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>医生列表</strong>
            </div>

            <div class="panel-body">
                <div clss="table-container">
                    <div id="outerdiv">
                        <div id="innerdiv">
                            <table st-pipe="callServer" st-table="displayed" class="table table-striped">
                                <thead>
                                <tr>
                                    <th st-ratio="30" st-sort="name">科室</th>
                                    <th st-ratio="20" st-sort="name">医生</th>
                                    <th st-ratio="10" st-sort="name" st-align-center>病人数</th>
                                </tr>

                                </thead>
                                <tbody ng-hide="isLoading">
                                <tr ng-repeat="row in displayed">
                                    <td st-ratio="30">{{row.province.name}}-{{row.hospital.name}}-{{row.office.name}}</td>
                                    <td st-ratio="20">{{row.name}}</td>
                                    <td st-ratio="10" st-align-center>

                                        <div ng-show="row.patient_count>0">
                                            <div ng-show="role == 2 || role == 3">
                                                {{row.patient_count}}
                                            </div>
                                            <div ng-show="role == 1 || role == 4">
                                                <a href="#/patient_list/{{row._id}}">
                                                    {{row.patient_count}}
                                                </a>
                                            </div>

                                        </div>
                                        <div ng-show="row.patient_count==0">
                                            {{row.patient_count}}
                                        </div>
                                    </td>

                                </tr>
                                </tbody>
                                <tbody ng-show="isLoading">
                                <tr>
                                    <td colspan="4" class="text-center">Loading ... </td>
                                </tr>
                                <tfoot>
                                <tr>
                                    <!--<td class="text-center" st-pagination="" st-items-by-page="10" colspan="4"></td>-->
                                    <td colspan="9" class="text-center">
                                        <div st-items-by-page="10" colspan="40" st-pagination="" st-template="partials/pagination.custom.html"></div>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>